@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: black;
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
}
.background{
  background-image: url("../img/fondo.png");
  background-size: cover;
  background-position: 70% center;
  padding: 30px 5%;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: clamp(24px, 4vw, 38px);
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 12px;
  margin-right: 12px;
  font-size: clamp(16px, 2vw, 22px);
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 40vh;
}

h1 {
  font-size: clamp(32px, 5vw, 65px);
}


/* ── EQUIPO ── */
.equipo {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 5rem 6%;
  background: #fff;
  flex-wrap: wrap;
}

.eq-imagen {
  flex: 1 1 380px;
}

.eq-imagen img {
  width: 100%;
  max-width: 65vh;
  aspect-ratio: 1 / 1;
  object-position: 45%; /* prueba con: center, top, bottom, left, right o porcentajes como 30% 50% */
  object-fit: cover;
  border-radius: 12px;
}

.eq-texto {
  flex: 1 1 380px;
}

.eq-linea {
  width: 25vh;
  height: 0.5vh;
  background: #2dbf9b;
  margin-bottom: 1rem;
}

.eq-texto h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #27124D;
  margin-bottom: 1.8rem;
}

.eq-texto p {
  font-size: 1.7rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.4rem;
}

/* ── CONFIANZA ── */
.confianza {
  background: #27124D;
  padding: 5rem 6%;
  text-align: center;
}

.confianza h2 {
  color: #fff;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.4;
}

.confianza h2 strong {
  font-family: Georgia, serif;
  font-weight: 700;
}

/* ── EQUIPO FUNDADORES ── */
.equipo-fundadores {
  background: #f5f0e8;
  padding: 1rem 6%;
}

.ef-fila {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.ef-fila-top {
  margin-bottom: 1rem;
  gap: 2rem;
}

.ef-fila-bottom {
  background: #fff;
  margin: 0 -6%;
  padding: 1rem 6% 1rem;
  gap: 2rem;
}

/* ── CARDS FILA TOP (33%) ── */
.ef-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 28%;
  position: relative;
  padding-top: 5%;
}

.ef-fondo-top {
  width: 100%;
  height: 20vh;
  background: #2d3fa0;
  border-radius: 16px;
  position: relative;
  margin-bottom: 1rem;
  overflow: visible;
}

.ef-foto-top {
  width: auto;
  height: 130%;
  object-fit: contain;
  object-position: bottom;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ── CARDS FILA BOTTOM (25%) ── */
.ef-card-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 25%;
  position: relative;
  padding-top: 5%;
}

.ef-fondo-bottom {
  width: 100%;
  height: 20vh;
  background: #2d3fa0;
  border-radius: 16px;
  position: relative;
  margin-bottom: 1rem;
  overflow: visible;
}

.ef-foto-bottom {
  width: auto;
  height: 130%;
  object-fit: contain;
  object-position: bottom;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ── TEXTOS Y LINKEDIN (compartido) ── */
.ef-card-top h3,
.ef-card-bottom h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.ef-card-top p,
.ef-card-bottom p {
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 1rem;
}

.ef-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #2d3fa0;
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.ef-linkedin:hover {
  background: #24327f;
}

@media (max-width: 900px) {
  .ef-card-top {
    width: 45%;
  }
  .ef-card-bottom {
    width: 45%;
  }
  .ef-fila-bottom {
    margin: 0 -6%;
    padding: 5rem 6% 3rem;
  }
}
/* ── TESTIMONIOS ── */
.testimonios {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 6%;
  overflow: hidden;
}

.test-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/edificio.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.test-card {
  position: relative;
  z-index: 1;
  background-image: url("../img/cartas.jpg");
  border-radius: 20px;
  padding: 3rem 3.5rem;
  max-width: 680px;
  width: 100%;
  color: white;
  overflow: hidden;
}

.test-q {
  font-size: 5rem;
  color: #2dbf9b;
  line-height: 0;
  display: block;
  font-family: Georgia, serif;
}

.test-q-open {
  font-size: 5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.test-q-close {
  font-size: 5rem;
  text-align: right;
  margin-top: 0.5rem;
}

.test-track-container {
  overflow: hidden;
}

.test-track {
  display: flex;
  transition: transform 0.5s ease;
}

.test-slide {
  min-width: 100%;
  padding: 0 0.5rem;
}

.test-slide p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 1.5rem;
}

.test-autor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.test-autor strong {
  font-size: 1rem;
  color: white;
}

.test-autor span {
  font-size: 0.85rem;
  opacity: 0.7;
}

.test-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.test-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
}

.test-btn:hover {
  border-color: #2dbf9b;
  color: #2dbf9b;
  transform: scale(1.05);
}

.test-dots {
  display: flex;
  gap: 0.5rem;
}

.test-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s;
}

.test-dot.active {
  background: #2dbf9b;
}





/* ── FOOTER ── */
.footer {
  background: #fff;
}

.footer-titulo {
  padding: 4rem 6% 3rem;
}

.footer-titulo h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 50rem);
  font-weight: 800;
  line-height: 1.1;
}

.ft-violeta {
  color: #27124D;
}

.ft-verde {
  color: #2dbf9b;
}

.footer-inferior {
  background: #27124D;
  padding: 3rem 6%;
  display: flex;
  flex-wrap: wrap;
  gap: 10rem;
  color: #fff;
}

.footer-col {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-logo-hr {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.footer-logo-evolution {
  width:25vh;
  height: auto;
}

.footer-logo-evolution p {
  font-size: 0.7rem;
  color: #CD6829;
  font-style: normal;
  letter-spacing: 0.05em;
  margin-top: -0.2rem;
}

.footer-col h4 {
  color: #CD6829;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-col p {
  font-size: 0.95rem;
  opacity: 0.9;
}





/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }

  .left, .right {
    width: 100%;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  nav a {
    margin-left: 0;
  }

  .por-que {
    flex-direction: column;
  }

  .pq-imagen img {
    max-width: 100%;
  }
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}